package com.warm.androidstudy.view.room.model;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.warm.androidstudy.R;
import com.warm.androidstudy.databinding.ActivityRoomBinding;

public class RoomActivity extends AppCompatActivity {
    private ActivityRoomBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_room);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_room);
        binding.btnAdd.setOnClickListener(v -> add());
    }

    private void add(){
//        Person person_ = new Person(1,"Room", 18,1);
//        DBInstance.getInstance().getPersonDao().insert(person_);
//        binding.setPerson(person_);
    }

    private void delete(){

    }
}